package net.jxtz.jxtzos.entity.spider;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(exclude = {"id","createTime"})
public class SpiderLandTransactionV2 implements Serializable {
    private static final long serialVersionUID = 3613615706614387664L;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private Integer phase;

    @ExcelProperty("城市区域")
    @TableField("cityArea")
    private String cityArea;

    @ExcelProperty("类型")
    private String type;

    @ExcelProperty("交易状态")
    @TableField("statCode")
    private String statCode;

    @ExcelProperty("交易来源")
    @TableField("transactionSource")
    private String transactionSource;

    @ExcelProperty("交易编号")
    @TableField("exchangeNumber")
    private String exchangeNumber;

    @ExcelProperty("地块编号")
    @TableField("parcelNumber")
    private String parcelNumber; // 地块编号

    @ExcelProperty("地块名")
    @TableField("landName")
    private String landName; // 地块名

    @ExcelProperty("位置")
    private String position; // 位置

    @ExcelProperty("出让方式")
    @TableField("transferMode")
    private String transferMode; // 出让方式

    @ExcelProperty("土地用途")
    @TableField("landUse")
    private String landUse; // 土地用途

    @ExcelProperty("土地面积")
    @TableField("plotArea")
    private String plotArea; // 土地面积

    @ExcelProperty("容积率")
    @TableField("plotRatio")
    private String plotRatio; // 容积率

    @ExcelProperty("建筑密度")
    @TableField("buildingDensity")
    private String buildingDensity; // 建筑密度

    @ExcelProperty("绿地率")
    @TableField("greenSpaceRate")
    private String greenSpaceRate; // 绿地率

    @ExcelProperty("保证金截止时间")
    @TableField("bzjEndTime")
    private String bzjEndTime;

    @ExcelProperty("拍卖开始时间")
    @TableField("paimaiStartTime")
    private String paimaiStartTime;

    @ExcelProperty("挂牌起始时间")
    @TableField("guapaiStartTime")
    private String guapaiStartTime;

    @ExcelProperty("挂牌截止时间")
    @TableField("guapaiEndTime")
    private String guapaiEndTime;

    @ExcelProperty("起拍价")
    @TableField("startingPrice")
    private String startingPrice; // 起拍价

    @ExcelProperty("总价")
    @TableField("totalPrice")
    private String totalPrice; // 总价

    @ExcelProperty("竞得人")
    private String winner; // 竞得人

    @ExcelProperty("成交日期")
    @TableField("transactionDate")
    private String transactionDate; // 成交日期


    @ExcelIgnore
    @TableField("spiderLogId")
    private Long spiderLogId;


    @TableField(fill = FieldFill.INSERT, value = "createTime")
    @ExcelIgnore
    private Integer createTime; // 创建时间
}
